import React from "react";
import { context1 } from "./son";

class GrandSon extends React.PureComponent {
  render() {
    console.log("render-son");
    return (
      <>
        <context1.Consumer>
          {(value) => {
            return <div>grandSon组件接收到的数据:{value}</div>;
          }}
        </context1.Consumer>
      </>
    );
  }
}

export default GrandSon;
